package tcp

//https://zhuanlan.zhihu.com/p/25791341

import (
	"net"
	"fmt"
)

func RunS(){
	l, error := net.Listen("tcp",":80") //:不能少
	if error != nil{
		fmt.Printf("connect error %v", error)
		return
	}

	for{
		c,error := l.Accept()
		if error!=nil{
			fmt.Println("error accept ", error)
		}
		go handle(c)
	}
}

func handle(c net.Conn) {
	defer c.Close()


}